package com.wn.class30.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class JoinExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public JoinExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andJoinIdIsNull() {
            addCriterion("join_id is null");
            return (Criteria) this;
        }

        public Criteria andJoinIdIsNotNull() {
            addCriterion("join_id is not null");
            return (Criteria) this;
        }

        public Criteria andJoinIdEqualTo(Integer value) {
            addCriterion("join_id =", value, "joinId");
            return (Criteria) this;
        }

        public Criteria andJoinIdNotEqualTo(Integer value) {
            addCriterion("join_id <>", value, "joinId");
            return (Criteria) this;
        }

        public Criteria andJoinIdGreaterThan(Integer value) {
            addCriterion("join_id >", value, "joinId");
            return (Criteria) this;
        }

        public Criteria andJoinIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("join_id >=", value, "joinId");
            return (Criteria) this;
        }

        public Criteria andJoinIdLessThan(Integer value) {
            addCriterion("join_id <", value, "joinId");
            return (Criteria) this;
        }

        public Criteria andJoinIdLessThanOrEqualTo(Integer value) {
            addCriterion("join_id <=", value, "joinId");
            return (Criteria) this;
        }

        public Criteria andJoinIdIn(List<Integer> values) {
            addCriterion("join_id in", values, "joinId");
            return (Criteria) this;
        }

        public Criteria andJoinIdNotIn(List<Integer> values) {
            addCriterion("join_id not in", values, "joinId");
            return (Criteria) this;
        }

        public Criteria andJoinIdBetween(Integer value1, Integer value2) {
            addCriterion("join_id between", value1, value2, "joinId");
            return (Criteria) this;
        }

        public Criteria andJoinIdNotBetween(Integer value1, Integer value2) {
            addCriterion("join_id not between", value1, value2, "joinId");
            return (Criteria) this;
        }

        public Criteria andJoinNameIsNull() {
            addCriterion("join_name is null");
            return (Criteria) this;
        }

        public Criteria andJoinNameIsNotNull() {
            addCriterion("join_name is not null");
            return (Criteria) this;
        }

        public Criteria andJoinNameEqualTo(String value) {
            addCriterion("join_name =", value, "joinName");
            return (Criteria) this;
        }

        public Criteria andJoinNameNotEqualTo(String value) {
            addCriterion("join_name <>", value, "joinName");
            return (Criteria) this;
        }

        public Criteria andJoinNameGreaterThan(String value) {
            addCriterion("join_name >", value, "joinName");
            return (Criteria) this;
        }

        public Criteria andJoinNameGreaterThanOrEqualTo(String value) {
            addCriterion("join_name >=", value, "joinName");
            return (Criteria) this;
        }

        public Criteria andJoinNameLessThan(String value) {
            addCriterion("join_name <", value, "joinName");
            return (Criteria) this;
        }

        public Criteria andJoinNameLessThanOrEqualTo(String value) {
            addCriterion("join_name <=", value, "joinName");
            return (Criteria) this;
        }

        public Criteria andJoinNameLike(String value) {
            addCriterion("join_name like", value, "joinName");
            return (Criteria) this;
        }

        public Criteria andJoinNameNotLike(String value) {
            addCriterion("join_name not like", value, "joinName");
            return (Criteria) this;
        }

        public Criteria andJoinNameIn(List<String> values) {
            addCriterion("join_name in", values, "joinName");
            return (Criteria) this;
        }

        public Criteria andJoinNameNotIn(List<String> values) {
            addCriterion("join_name not in", values, "joinName");
            return (Criteria) this;
        }

        public Criteria andJoinNameBetween(String value1, String value2) {
            addCriterion("join_name between", value1, value2, "joinName");
            return (Criteria) this;
        }

        public Criteria andJoinNameNotBetween(String value1, String value2) {
            addCriterion("join_name not between", value1, value2, "joinName");
            return (Criteria) this;
        }

        public Criteria andJoinTelIsNull() {
            addCriterion("join_tel is null");
            return (Criteria) this;
        }

        public Criteria andJoinTelIsNotNull() {
            addCriterion("join_tel is not null");
            return (Criteria) this;
        }

        public Criteria andJoinTelEqualTo(String value) {
            addCriterion("join_tel =", value, "joinTel");
            return (Criteria) this;
        }

        public Criteria andJoinTelNotEqualTo(String value) {
            addCriterion("join_tel <>", value, "joinTel");
            return (Criteria) this;
        }

        public Criteria andJoinTelGreaterThan(String value) {
            addCriterion("join_tel >", value, "joinTel");
            return (Criteria) this;
        }

        public Criteria andJoinTelGreaterThanOrEqualTo(String value) {
            addCriterion("join_tel >=", value, "joinTel");
            return (Criteria) this;
        }

        public Criteria andJoinTelLessThan(String value) {
            addCriterion("join_tel <", value, "joinTel");
            return (Criteria) this;
        }

        public Criteria andJoinTelLessThanOrEqualTo(String value) {
            addCriterion("join_tel <=", value, "joinTel");
            return (Criteria) this;
        }

        public Criteria andJoinTelLike(String value) {
            addCriterion("join_tel like", value, "joinTel");
            return (Criteria) this;
        }

        public Criteria andJoinTelNotLike(String value) {
            addCriterion("join_tel not like", value, "joinTel");
            return (Criteria) this;
        }

        public Criteria andJoinTelIn(List<String> values) {
            addCriterion("join_tel in", values, "joinTel");
            return (Criteria) this;
        }

        public Criteria andJoinTelNotIn(List<String> values) {
            addCriterion("join_tel not in", values, "joinTel");
            return (Criteria) this;
        }

        public Criteria andJoinTelBetween(String value1, String value2) {
            addCriterion("join_tel between", value1, value2, "joinTel");
            return (Criteria) this;
        }

        public Criteria andJoinTelNotBetween(String value1, String value2) {
            addCriterion("join_tel not between", value1, value2, "joinTel");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andJoinStatusIsNull() {
            addCriterion("join_status is null");
            return (Criteria) this;
        }

        public Criteria andJoinStatusIsNotNull() {
            addCriterion("join_status is not null");
            return (Criteria) this;
        }

        public Criteria andJoinStatusEqualTo(String value) {
            addCriterion("join_status =", value, "joinStatus");
            return (Criteria) this;
        }

        public Criteria andJoinStatusNotEqualTo(String value) {
            addCriterion("join_status <>", value, "joinStatus");
            return (Criteria) this;
        }

        public Criteria andJoinStatusGreaterThan(String value) {
            addCriterion("join_status >", value, "joinStatus");
            return (Criteria) this;
        }

        public Criteria andJoinStatusGreaterThanOrEqualTo(String value) {
            addCriterion("join_status >=", value, "joinStatus");
            return (Criteria) this;
        }

        public Criteria andJoinStatusLessThan(String value) {
            addCriterion("join_status <", value, "joinStatus");
            return (Criteria) this;
        }

        public Criteria andJoinStatusLessThanOrEqualTo(String value) {
            addCriterion("join_status <=", value, "joinStatus");
            return (Criteria) this;
        }

        public Criteria andJoinStatusLike(String value) {
            addCriterion("join_status like", value, "joinStatus");
            return (Criteria) this;
        }

        public Criteria andJoinStatusNotLike(String value) {
            addCriterion("join_status not like", value, "joinStatus");
            return (Criteria) this;
        }

        public Criteria andJoinStatusIn(List<String> values) {
            addCriterion("join_status in", values, "joinStatus");
            return (Criteria) this;
        }

        public Criteria andJoinStatusNotIn(List<String> values) {
            addCriterion("join_status not in", values, "joinStatus");
            return (Criteria) this;
        }

        public Criteria andJoinStatusBetween(String value1, String value2) {
            addCriterion("join_status between", value1, value2, "joinStatus");
            return (Criteria) this;
        }

        public Criteria andJoinStatusNotBetween(String value1, String value2) {
            addCriterion("join_status not between", value1, value2, "joinStatus");
            return (Criteria) this;
        }

        public Criteria andJoinRemarksIsNull() {
            addCriterion("join_remarks is null");
            return (Criteria) this;
        }

        public Criteria andJoinRemarksIsNotNull() {
            addCriterion("join_remarks is not null");
            return (Criteria) this;
        }

        public Criteria andJoinRemarksEqualTo(String value) {
            addCriterion("join_remarks =", value, "joinRemarks");
            return (Criteria) this;
        }

        public Criteria andJoinRemarksNotEqualTo(String value) {
            addCriterion("join_remarks <>", value, "joinRemarks");
            return (Criteria) this;
        }

        public Criteria andJoinRemarksGreaterThan(String value) {
            addCriterion("join_remarks >", value, "joinRemarks");
            return (Criteria) this;
        }

        public Criteria andJoinRemarksGreaterThanOrEqualTo(String value) {
            addCriterion("join_remarks >=", value, "joinRemarks");
            return (Criteria) this;
        }

        public Criteria andJoinRemarksLessThan(String value) {
            addCriterion("join_remarks <", value, "joinRemarks");
            return (Criteria) this;
        }

        public Criteria andJoinRemarksLessThanOrEqualTo(String value) {
            addCriterion("join_remarks <=", value, "joinRemarks");
            return (Criteria) this;
        }

        public Criteria andJoinRemarksLike(String value) {
            addCriterion("join_remarks like", value, "joinRemarks");
            return (Criteria) this;
        }

        public Criteria andJoinRemarksNotLike(String value) {
            addCriterion("join_remarks not like", value, "joinRemarks");
            return (Criteria) this;
        }

        public Criteria andJoinRemarksIn(List<String> values) {
            addCriterion("join_remarks in", values, "joinRemarks");
            return (Criteria) this;
        }

        public Criteria andJoinRemarksNotIn(List<String> values) {
            addCriterion("join_remarks not in", values, "joinRemarks");
            return (Criteria) this;
        }

        public Criteria andJoinRemarksBetween(String value1, String value2) {
            addCriterion("join_remarks between", value1, value2, "joinRemarks");
            return (Criteria) this;
        }

        public Criteria andJoinRemarksNotBetween(String value1, String value2) {
            addCriterion("join_remarks not between", value1, value2, "joinRemarks");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}